import java.io.File;
import java.io.IOException;

/*
 * @author zzr
 * @date: 2025/04/21  10:58
 * @description:
 */
public class IO2 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt");

        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());

        boolean ret = file.createNewFile();
        System.out.println("ret = " + ret);
    }
}
